﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.ShipMethod
{
    public class ShipMethodsPresenter : Presenter<IShipMethodsView>
    {
        public ShipMethodsPresenter(IShipMethodsView view)
            : base(view)
        {
        }

        public void Display()
        {
            View.ShipMethods = Model.GetShipMethods();
        }

        public void DisplayByPage(int currentPage)
        {
            View.ShipMethods = Model.GetShipMethodsByPage(currentPage);
        }

        public int GetTotalPage()
        {
            return Model.GetTotalPageFromShipMethod();
        }

        public void DisplayActive()
        {
            View.ShipMethods = Model.GetShipMethodsActive();
        }
    }
}
